package com.pucong.gitee.database.backup.common.entity.redis;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pucong.gitee.database.backup.common.selfenum.CommonBoolenEnum;
import com.pucong.gitee.database.backup.common.selfenum.RedisLogTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("AUTO_REDIS_LOG")
@ApiModel("redis 执行日志")
public class AutoRedisLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "UUID",type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String uuid;

    @TableField("REDIS_ID")
    @ApiModelProperty("redis id")
    private String redisId;

    @TableField("REDIS_DB")
    @ApiModelProperty("redis db")
    private Integer redisDb;

    @TableField("REDIS_LOG_TYPE")
    @ApiModelProperty("redis 操作类型")
    private RedisLogTypeEnum redisLogType;

    @TableField("operation_content")
    @ApiModelProperty("操作内容")
    private String operationContent;

    @TableField("create_by")
    @ApiModelProperty("创建人id")
    private String createBy;

    @TableField("CREATE_TIME")
    @ApiModelProperty("创建时间")
    private Date createTime;
}
